{% extends  'myadmin/index.html'%}

{% block title %}
<title>后台-订单详情</title>
{% endblock %}

{% block con %}
  <div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title  am-cf">订单详情</div>
                </div>
                <div class="widget-body  am-fr">

                    
                <form>    
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="am-form-group tpl-table-list-select">
                            <select name='types' data-am-selected="{btnSize: 'sm'}" style="display: none;">
                              <option {% if request.GET.types == 'id' %} selected {% endif %} value="aid">订单号</option>
                              <option {% if request.GET.types == 'shr' %} selected {% endif %} value="shr">用户</option>
                              <option {% if request.GET.types == 'shdh' %} selected {% endif %} value="shdh">手机</option>
                            </select>
                        </div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                        <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                            <input value="{{ request.GET.keywords }}" name='keywords' type="text" class="am-form-field ">
                            <span class="am-input-group-btn">
                                <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search"></button>
                              </span>
                        </div>
                    </div>
                </form>  
                    <div class="am-u-sm-12">
                        <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                            <thead>
                                <tr>
                                    <th>订单号</th>
                                    <th>名称</th>
                                    <th>主图</th>
                                    <th>数量</th>
                                    <th>单价</th>
                                    <th>返回</th>
                                </tr>
                            </thead>
                            <tbody>
                                {% for v in data %}
                                <tr>
                                    
                                    <td class="am-text-middle">{{ v.orderid_id }}</td>
                                    <td class="am-text-middle">{{ v.title }}</td>
                                    <td class="am-text-middle"><img src="{{ v.pic_url }}" style="width:100px "></td>
                                    <td class="am-text-middle">{{ v.num }}</td>
                                    <td class="am-text-middle">{{ v.price }}</td>
                                    <td class="am-text-middle">
                                        <div class="tpl-table-black-operation">
                                            <a href="{% url 'myadmin_order' %}">
                                                <i class="am-icon-pencil"></i>返回 
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                                {% endfor %}

                                <!-- more data -->
                            </tbody>
                        </table>
                    </div>
                    <div class="am-u-lg-12 am-cf">

                        <div class="am-fr">
                            <ul class="am-pagination tpl-pagination">
                               
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}